import request from '@/utils/request'

export function adddShoppingCar(data) { // 加入购物车
  return request({
    url: '/course/shoppingCar/adddShoppingCar',
    method: 'post',
    data
  })
}

export function getMyShoppingCar(params) { // 获取我的购物车
  return request({
    url: '/course/shoppingCar/getMyShoppingCar',
    method: 'get',
    params
  })
}

export function deleteShoppingCar(id, params) { // 删除购物车
  return request({
    url: '/course/shoppingCar/adddShoppingCar/' + id,
    method: 'delete',
    params
  })
}
